package com.stylefeng.guns.core.exception;

/**
 * Created by IntelliJ IDEA.
 * User: xinqi
 * Date: 2018/2/6
 * Time: 10:50
 */
public class FrontException extends Exception {
    private final static Integer ERROR_CODE = 500;
    private Integer code;
    private String message;

    public FrontException(Integer code,String message){
        this.code = code;
        this.message = message;
    }
    public FrontException(String message){
        this.message = message;
        this.code = ERROR_CODE;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
